package chances.epg.ui.taglib.html;

import javax.servlet.jsp.JspException;

public class ScriptTag extends EpgTagSupport {
	/**
	 * 
	 */
	private static final long serialVersionUID = 8526202702328974849L;
	private String src;
	private String type = "text/javascript";
	private String context;

	@Override
	public int doEndTag() throws JspException {
		String script = this.getBodyContent().getString();
		epgPageContext.addScript(script);
		return super.doEndTag();
	}

	public String getSrc() {
		return src;
	}

	public String getType() {
		return type;
	}

	public String getContext() {
		return context;
	}

	public void setSrc(String src) {
		this.src = src;
	}

	public void setType(String type) {
		this.type = type;
	}

	public void setContext(String context) {
		this.context = context;
	}
}
